#pragma once

#include <BaseTsd.h>

class CCrc32
{
public:
    CCrc32();
    virtual ~CCrc32();

public:
    UINT32 GetCrc32( const void*const pbuf , const UINT32 buflen );
    //void BuildCRCTable(void);
    //bool CalculateCRC32(const char* pBlock, const unsigned long long iInitialSize, unsigned int& crc32) const;
    bool GetCrc32FromFile(const char* fileName, unsigned int& crc32) ;

protected:
    void NEW_CRC32();

private:
    unsigned int  m_CRC32_seed;
};
